package com.sushuo.base.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name="t_opr_specialty")
@DynamicInsert
@DynamicUpdate
public class OprSpecialty{

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="id")
	private Integer id;

	@Column(name="name")
	private String name;	// 特产馆名称

	@Column(name="img_url")
	private String imgUrl;	// 图片url多个用,隔开

	@Column(name="source_ids")
	private String sourceIds;	// 关联商品ID多个用英文逗号隔开

	@Column(name="create_by")
	private String createBy;	// 发布人登录账号

	@Column(name="update_time")
	private Date updateTime;	// 修改时间

	@Column(name="start_time")
	private Date startTime;	// 开始时间

	@Column(name="end_time")
	private Date endTime;	// 结束时间

	@Column(name="create_time")
	private Date createTime;	// 创建时间
	
    @Transient
    @Column(name = "online_status")
    private String onlineStatus;

	public Integer getId(){
		return this.id;
	}
	public void setId(Integer id){
		this.id=id;
	}
	public String getName(){
		return this.name;
	}
	public void setName(String name){
		this.name=name;
	}
	public String getImgUrl(){
		return this.imgUrl;
	}
	public void setImgUrl(String imgUrl){
		this.imgUrl=imgUrl;
	}
	public String getSourceIds(){
		return this.sourceIds;
	}
	public void setSourceIds(String sourceIds){
		this.sourceIds=sourceIds;
	}
	public String getCreateBy(){
		return this.createBy;
	}
	public void setCreateBy(String createBy){
		this.createBy=createBy;
	}
	public Date getUpdateTime(){
		return this.updateTime;
	}
	public void setUpdateTime(Date updateTime){
		this.updateTime=updateTime;
	}
	public Date getStartTime(){
		return this.startTime;
	}
	public void setStartTime(Date startTime){
		this.startTime=startTime;
	}
	public Date getEndTime(){
		return this.endTime;
	}
	public void setEndTime(Date endTime){
		this.endTime=endTime;
	}
	public Date getCreateTime(){
		return this.createTime;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
    public String getOnlineStatus() {
        return onlineStatus;
    }
    public void setOnlineStatus(String onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

}